//
//  CustomTitleViewController.m
//  指纹识别
//
//  Created by lzy on 2018/4/20.
//  Copyright © 2018年 lzy. All rights reserved.
//

#import "CustomTitleViewController.h"
#define kWidthDevice [UIScreen mainScreen].bounds.size.width
@interface CustomTitleViewController ()

@end

@implementation CustomTitleViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"自定义字体";
    
    for(NSString *fontfamilyname in [UIFont familyNames])
    {
        NSLog(@"family:'%@'",fontfamilyname);
        for(NSString *fontName in [UIFont fontNamesForFamilyName:fontfamilyname])
        {
            NSLog(@"\tfont:'%@'",fontName);
        }
        NSLog(@"-------------");
    }
    
    
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 64, kWidthDevice, 150)];
    label.text = @"楷体--汉体书写信息技术标准相容档案下载使用界面简单 支援服务升级资讯专业制作创意空间快速无线上网㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩AaBbCc ＡａＢｂＣｃ";
    label.numberOfLines = 0;
    UIFont *font = [UIFont fontWithName:@"KaiTi_GB2312" size:20];
    if (font) {
        label.font = font;
        [self.view addSubview:label];
    }

    UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(10, 260, kWidthDevice, 150)];
    label1.text = @"魏碑--汉体书写信息技术标准相容档案下载使用界面简单 支援服务升级资讯专业制作创意空间快速无线上网㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩AaBbCc ＡａＢｂＣｃ";
    label1.numberOfLines = 0;
    UIFont *font1 = [UIFont fontWithName:@"-Yolan-" size:20];
    if (font1) {
        label1.font = font1;
        [self.view addSubview:label1];
    }
   
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
